package JZOO;

public class ZooAnimal{

	private Cage aCage = new Cage();
	private String name;
	private String type;
	private String color;
	private int age;
	private boolean isHungry = false;


	public ZooAnimal(){

		isHungry = true;
		age = 0;
	}

	public void setCage(Cage c){

		aCage = c;   
	}

	public Cage getCage(){

		return aCage;
	}

	public String getName(){

		return name;
	}

	public String getType(){

		return type;
	}

	public String getColor(){

		return color;
	}

	public int getAge(){

		return age;
	}

	public boolean getHungry(){

		return isHungry;
	}

	public void eat(){

		isHungry = false;         
	}


	public void sleep(){
		
		isHungry = true;
		System.out.println("The Animal is sleeping rigth now..."+"\n");
	}

	public void setName(String aName){

		name = aName;
	} 

	public void setType(String aType){

		type = aType;
	}

	public void setColor(String aColor){

		color = aColor;
	}

	public void setAge(int aAge){

		age = aAge;
	}
}
